package com.meteor.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 用户Token
 *
 * @author lynn
 * @date 2024/1/03
 */

@Data
@TableName("sys_user_token")
@Schema
public class SysUserToken {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;


    @Schema(description = "用户id")
    private String userId;


    @Schema(description = "accessToken")
    private String accessToken;


    @Schema(description = "accessToken 过期时间")
    private Date accessTokenExpire;


    @Schema(description = "refreshToken")
    private String refreshToken;


    @Schema(description = "refreshToken 过期时间")
    private Date refreshTokenExpire;


    @Schema(description = "租户ID")
    private String merchantId;


    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}